package com.fqgj.xjd.user.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.xjd.user.dao.UserAadhaarScoreDao;
import com.fqgj.xjd.user.entity.business.UserAdahaarScoreEntity;
import com.google.common.collect.Maps;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: yangshan
 * Date: 2019-05-14
 * Time: 16:38
 * Description:
 */
@Repository
public class UserAadhaarScoreDaoImpl extends AbstractBaseMapper<UserAdahaarScoreEntity> implements UserAadhaarScoreDao {

    @Override
    public UserAdahaarScoreEntity getAadhaarEntityByUserCode(String userCode){
        Map<String, String> map = Maps.newHashMap();
        map.put("userCode", userCode);
        return getSqlSession().selectOne(getStatement("getAadhaarEntityByUserCode"), map);


    }

}
